package java_DesignPattern.CreatorPattern.BuilderPattern.Method1;

/**
 * 指挥者类
 */
public class Director {

    private Builder builder;

    /**
     * 构造函数
     * @param builder
     */
    public Director(Builder builder) {
        this.builder = builder;
    }


    /**
     * 指挥建造者建造美女
     * @param height
     * @param weight
     */
    public BGirl construct(String height, String weight) {
        builder.buildHeight(height);
        builder.buildWeight(weight);
        return builder.getBGirl();
    }
}
